package myWebApp;

/*第三章 垃圾收集器
 *测试需要知识点:通过设置-XX:PretenureSizeThreshold参数
 *使得大于这个值的对象直接在老年代分配
 *jvm 参数:-verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8 -XX:+UseSerialGC -XX:PretenureSizeThreshold=3145728
 *2017年8月4日19:45:53
 */
public class GC4 {
	
	public static void main(String[] args) {
		byte[] TB = new byte[4*1024*1024];
	}
	
}

/*信息如下
 *Heap
	 def new generation   total 9216K, used 1312K [0x00000000fec00000, 0x00000000ff600000, 0x00000000ff600000)
	  eden space 8192K,  16% used [0x00000000fec00000, 0x00000000fed48028, 0x00000000ff400000)
	  from space 1024K,   0% used [0x00000000ff400000, 0x00000000ff400000, 0x00000000ff500000)
	  to   space 1024K,   0% used [0x00000000ff500000, 0x00000000ff500000, 0x00000000ff600000)
	 tenured generation   total 10240K, used 4096K [0x00000000ff600000, 0x0000000100000000, 0x0000000100000000)
	   the space 10240K,  40% used [0x00000000ff600000, 0x00000000ffa00010, 0x00000000ffa00200, 0x0000000100000000)
	 Metaspace       used 2544K, capacity 4486K, committed 4864K, reserved 1056768K
	  class space    used 271K, capacity 386K, committed 512K, reserved 1048576K
 */
